package com.jinke.api.modules.app.config;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.fastjson2.JSON;
import com.jinke.api.modules.app.response.ExcelBilled;
import lombok.extern.slf4j.Slf4j;

/**
 * 模板的读取类
 *
 * @author Jiaju Zhuang
 */
@Slf4j
public class ExcelBilledListener extends AnalysisEventListener<ExcelBilled> {
    @Override
    public void invoke(ExcelBilled data, AnalysisContext context) {
        log.info("解析到一条数据:{}", JSON.toJSONString(data));

    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext context) {

        log.info("所有数据解析完成！");
    }

}
